package cn.iocoder.yudao.module.erp.controller.admin.contractpaymentplan.vo.contractpaymentplandetail;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 合同付款计划明细分页 Request VO")
@Data
public class ContractPaymentPlanDetailPageReqVO extends PageParam {

    @Schema(description = "关联付款计划主表ID", example = "2266")
    private Long paymentPlanId;

    @Schema(description = "付款计划编号")
    private String planNo;

    @Schema(description = "付款期数")
    private String period;

    @Schema(description = "计划付款日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planDate;

    @Schema(description = "付款类型", example = "1")
    private String paymentType;

    @Schema(description = "计划付款比例(%)")
    private Integer planPaymentRatio;

    @Schema(description = "计划付款金额")
    private BigDecimal planPaymentAmount;

    @Schema(description = "实际付款状态", example = "1")
    private String actualPaymentStatus;

    @Schema(description = "实际付款金额")
    private BigDecimal actualAmount;

    @Schema(description = "实际付款日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] actualDate;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}